//统一管理自定义指令
export const errimg = {
  inserted: function (dom, options) {
    dom.onerror = function () {
      dom.src = options.value
    }
  },
  componentUpdated: function (dom, options) {
    // console.log(options)
    // console.log(dom.src)
    dom.src = dom.src || options.value
  }
}
